package com.travel.JPA;

import com.travel.Bean.Record;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface RecoedJPA extends JpaRepository<Record,String> {

    @Modifying
    @Query("update record r set r.record_state = 1,r.record_amount = ?2 where r.order_id = ?1")
    Integer updateRecord(String orderId);



}
